package homework02.test01;

public class Manager {

    private String name;

    private int id;

    private double salary;

    private double bonus;

    public Manager() {
    }

    public Manager(String name, int id, double salary, double bonus) {
        setName(name);
        setId(id);
        setSalary(salary);
        setBonus(bonus);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public void work() {
        //工号为123基本工资为15000奖金为6000的项目经理一龙正在努力的做着管理工作,
        //
        // 分配任务,检查员工提交上来的代码.....
        System.out.print("工号:" + getId() + ", 基本工资:" + getSalary() + ", 奖金为" + getBonus() + "的项目经理");
        System.out.print(getName() + "正在努力的做着管理工作, 分配任务, 检查员工提交的代码...");
        System.out.println();
    }
}
